package com.lyz.apidemo;

import java.util.Objects;

/**
 * @ClassName Test1
 * @Description objects 方法 equals isNull
 * @Author 2214361854
 * @Date 2022/2/19 17:57
 * @Version 1.0
 */
public class Test1 {
    public static void main(String[] args) {
        String a = "a";
        String b = null;
        System.out.println(Objects.equals(a,b));
        System.out.println(Objects.isNull(a));
    }
}
